home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Development Kits / MPW etc / MPW-GM / MPW / Examples / 32BitAExamples / Instructions < prev    next >
Encoding:
Text File  |  1998-12-03  |  3.0 KB  |  84 lines  |  [TEXT/MPS ]

  1. Instructions - The Assembly Language Examples
  2.  
  3. Copyright Apple Computer, Inc. 1987-1992
  4. All rights reserved.
  5.  
  6. About the 32BitAExamples
  7.  
  8.     A sample assembly language program, using "-model far" is included
  9.     with MPW. This is a modified version of the "count" program in the 
  10.     {MPW}Examples:Aexamples: folder. The specifics of how to generate 32-bit
  11.     addressing is discussed in the count.a file; to read, triple-click on the
  12.     line below and hit "enter":
  13.         
  14.             open {MPW}Examples:32BitAexamples:Count.a
  15.  
  16.  Building the Example
  17.  
  18.     You can easily build the sample program using the Directory
  19.     and Build menus.
  20.     
  21.     Set the default directory to "32BitAExamples:"
  22.  
  23.         The simplest way to do this is to select from the Directory menu
  24.         the menu item that ends in "32bitAExamples:" You can also set the
  25.         default directory by using the Directory and SetDirectory commands.
  26.         
  27.  
  28.     Build the program
  29.     
  30.         You can use any of the four Build items at the bottom of the Build
  31.         menu to build the program you have selected.  Each of these menu
  32.         items displays a dialog box that asks for the name of the program
  33.         you want to build.  When this dialog box appears, type the name of
  34.         one of the sample programs (Sample, Count, or Memory).
  35.         
  36.         Each of the Build menu items behaves slightly differently:
  37.         
  38.             Build…  -  The program is automatically built.  The commands
  39.             used, and any error messages, are displayed in the Worksheet.
  40.             Only files that have been changed since you last built the
  41.             program are compiled, saving considerable time.
  42.     
  43.             Full Build…  -  The program is completely rebuilt, ignoring
  44.             any object files or intermediate files that may already exist
  45.             from a previous build.  The commands used, and any errors, are
  46.             displayed in the Worksheet.
  47.             
  48.             Show Build Commands…  -  The commands needed to build the program
  49.             are written to the Worksheet, but not executed.  You can then
  50.             select any or all of the commands and execute them yourself.
  51.             (To execute the commands select them and press Enter.)
  52.             
  53.             Show Full Build Commands…  -  The commands needed to completely
  54.             rebuild the program are written to the Worksheet.  This is a
  55.             convenient way to see all of the commands used in building
  56.             the program you have selected.
  57.  
  58.  
  59. Count - A Sample MPW Tool
  60.  
  61.     Note: In MPW 3.3, a bug in this sample has been fixed. The bug was that
  62.           the tool ignored command line options.
  63.     
  64.     Note: This sample tool has an outstanding bug: the tool aborts wihout
  65.           accepting interactive input when a command line option is used,
  66.           bug no filename is provided.
  67.  
  68.     Count, a tool that runs in the MPW environment, counts characters and
  69.     lines in files.  A version of Count is included with MPW, and is
  70.     documented in the MPW Reference, Part II.  The source for Count is in
  71.     the files Count.a, FStubs.a, and Count.r.  MakeFile contains the
  72.     commands for building Count.
  73.  
  74.    To build Count, simply select the line below and press Enter.
  75.  
  76.         BuildProgram Count ∑∑ "{Worksheet}"
  77.  
  78.    To test Count, try counting the characters in file Count.a.
  79.  
  80.       Count -c Count.a
  81.  
  82.  
  83.  
  84.